package com.xxxx.server.config.security;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 分页拦截器  增加了limit 限制
 */
@Configuration
public class MyPageConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        //paginationInterceptor.setDialectType("mysql");
        return paginationInterceptor;
        //return new PaginationInterceptor();
    }
}



